<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>更新酒店风格信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">
		<table style="width: 400px">
			
			<tr>
				<td><label>酒店的风格:</label></td>
				<td>
					<table>
							<c:set var="styleSize" value="${fn:length(hotelTagList)}"></c:set>
							<c:forEach var="style" items="${hotelTagList}" varStatus="status">
								<c:if test="${status.count==1||(status.count-1)%5==0}">
									<tr>
								</c:if>
								<td >
									<c:if test="${style.link == 1 }">
										<input type="checkbox" name="hotelStyles" checked="checked"
												value="${style.styleId}" /> 
										<label>${style.styleName }</label>
								    </c:if>
								    <c:if test="${style.link == 0 }">
									    <input type="checkbox" name="hotelStyles"
												value="${style.styleId}" /> 
										<label>${style.styleName}</label>
									</c:if>
								</td>
								<c:if test="${status.count%5==0||status.count==styleSize}">
									</tr>
								</c:if>
							</c:forEach>
						</table>
				</td>
			</tr>
		</table>
	
		
	</form>
	
	<style type="text/css">
#fm {
	margin: 0;
	padding: 20px 20px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
td{
white-space: nowrap;
}
</style>
</body>
</html>